{% extends "./default.html" %}
{% block content %}
{% import "./public/adsPannel.html" as adsPannel %}


<main ms-controller="documentInfo">
  <div class="lbox">
    <div class="weizhi">您现在的位置是：<a href="/">首页</a>&nbsp;>&nbsp;<a
        href="{{post.categories[post.categories.length-1].url}}">{{(post.categories[post.categories.length-1]).name}}</a>
    </div>
    <article>
      <h1>{{post.title}}</h1>
      <div class="wz_info"> <span class="wz_frome"><a href="http://zhuanti.ip3q.com/"
            target="_blank">{{post.org}}</a></span><span class="wz_time">{{post.createdAt}}</span> </div>
      <div class="wz_smalltext">{{post.discription}}</div>
      <div class="content">
        {{post.comments | safe}}
      </div>
      <div class="wz_zhuanzai">
      </div>
      <div class="tags"> 相关标签：
        {% for tag in post.keywords %}
        <a href="#">#{{tag}}</a>
        {% endfor %}
      </div>
      <div class="info-pre-next">
        {% near_post "id"=post._id %}
        {% if near_post %}
        {% if near_post.preContent.title %}
        <p>上一篇:<a href="{{near_post.preContent.url}}">{{near_post.preContent.title}}</a> </p>
        {% endif %}
        {% if near_post.nextContent.title %}
        <p>下一篇:<a href="{{near_post.nextContent.url}}">{{near_post.nextContent.title}}</a> </p>
        {% endif %}
        {% endif %}
      </div>
      <div class="ad"><a href="https://www.aliyun.com/minisite/goods?userCode=l1qstn8f&share_source=copy_link"
          target="_blank"><img src="static/picture/ad3.jpg" alt=""></a></div>
    </article>
  </div>
</main>
<script>
  var userId = "{{post.uAuthor.id}}";
  userId && getUserContentsInfo(userId);
</script>
{% endblock %}